package com.csdj.t309.mapper;

import com.csdj.t309.entity.GymCard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @since 2022-03-05
 */
@Repository
public interface GymCardMapper extends BaseMapper<GymCard> {

    boolean insert(String userName, int cardTypeId, int status, String phone, int balance, LocalDate openDate);

    List<GymCard> findCardListPageByTypeId(Integer pageNum,Integer size, int  type);
    int findTotal();

    public List<GymCard> findList();
    public  int updateStatus(@Param("status") int status,@Param("id") int id);

    List<GymCard> findCardListByTypeId(@Param("type") int  type);
}
